﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using System.Web.Mvc;
using Hotnet.Web.MVCExtension;

namespace Hotnet.Web.Utility
{
	public class SelectControl
	{

		public string Text
		{
			get;set;
		}

		public string Value
		{
			get;set;
		}
		public object EnumerableData
		{
			get;set;
		}

		public HtmlControlType ControlType
		{
			get;set;
		}
		public string Title
		{
			get;set;
		}

		public SelectList List
		{
			get
			{
				SelectList list = new SelectList(EnumerableData as IEnumerable, Value, Text);
				return list;
			}
		}

		public string ButtonValue
		{
			get;
			set;
		}

		/// <summary>
		/// javascript回调函数
		/// </summary>
		public string CallbackScriptFunction
		{
			get;
			set;
		}

		public int PageControlID
		{
			get;
			set;
		}

		public List<string> SelectedValues
		{
			get;
			set;
		}

		/// <summary>
		/// 元素之间的间隔，值可以"100px",默认"100px"
		/// </summary>
		public string ElementInterval
		{
			get;
			set;
		}

		public List<string> ExtendAttributes
		{
			get;
			set;
		}

	

	}
}
